<div class="setting nomenu">
    <div class="right">
        <div class="workdetail">
            <div class="info">
                <span class="username">经纪人:</span>
                <span><?=$work['username']?></span>
            </div>
            <div class="info">
                <span class="title">是否暂定:</span>
                <span>
                    <?php if($work['sure'] == 0){ echo '否';}else{echo '是';}?>
                </span>
            </div>
            <div class="info">
                <span class="title">工作日期:</span>
                <span><?=Model_Common::getFormatTimeYMD($work['starttime'])?></span>
                至
                <span><?=Model_Common::getFormatTimeYMD($work['endtime'])?></span>
            </div>
            <div class="info">
                <span class="title">工作时间:</span>
                <span><?=Model_Common::getFomrtTimeHMSByHour($work['starthour'], $work['startmin'])?></span>
                至
                <span><?=Model_Common::getFomrtTimeHMSByHour($work['endhour'], $work['endmin'])?></span>
            </div>
            <div class="info">
                <span class="title">项目选择:</span>
                <span><?=$work['flg']?></span>
            </div>
            <div class="info">
                <span class="title long">本公司模特:</span>
                <span><?=Model_Model::getNicksByNameStr($work['modelname'])?></span>
            </div>
            <?php if(Model_User::getLevelID() != 3 && Model_User::getLevelID() != 1){?>
            <div class="info">
                <span class="title floatleft long1">非本公司资源:</span>
                <textarea class="multtextreadonly" readonly="readonly"><?=$work['info']?></textarea>
            </div>
            <?php }?>
            <div class="info nodisplay">
                <span class="title floatleft">特别说明:</span>
                <textarea class="multtextreadonly" readonly="readonly"><?=$work['notice']?></textarea>
            </div>
            <div class="info">
                <span class="title">工作类型:</span>
                <span><?=$work['worktype']?></span>
            </div>
            <?php if(Model_Work::ifAuthDetail($work)){?>
            <div class="info">
                <span class="title">收费单价:</span>
                <span><?=$work['perprice']?></span>
            </div>
            <div class="info nodisplay">
                <span class="title long1">预计小时人数:</span>
                <span><?=$work['hour']?></span>
            </div>
            <?php if(Model_User::getLevelID() != 4){?>
            <div class="info">
                <span class="title long1">预计回款日期:</span>
                <span><?=Model_Common::getFormatTimeYMD($work['prepricetime'])?></span>
            </div>
            <div class="info">
                <span class="username long">客户联系人:</span>
                <span><?=$work['customername']?></span>
            </div>
            
            <div class="info">
                <span class="title">客户名称:</span>
                <span><?=$work['companyname']?></span>
            </div>
            <div class="info">
                <span class="username">手机号:</span>
                <span><?=$work['customertel']?></span>
            </div>
            <div class="info">
                <span class="title long1">其它联系方式:</span>
                <span><?=$work['customerothertel']?></span>
            </div>
            <div class="info">
                <span class="title floatleft">客户地址:</span>
                <textarea class="multtextreadonly" readonly="readonly"><?=$work['customeraddress']?></textarea>
            </div>
            <div class="info">
                <span class="title floatleft">工作地址:</span>
                <textarea class="multtextreadonly" readonly="readonly"><?=$work['workaddress']?></textarea>
            </div>
            <?php }?>
            <?php }?>
            <?php if(Model_User::getLevelID() == 5) {?>
            <div class="info">
                <span class="title long1">实际回款金额:</span>
                <span><?=$work['price']?></span>
            </div>
            <div class="info">
                <span class="title long1">实际回款日期:</span>
                <?php if($work['pricetime'] != 0){ ?>
                <span><?=Model_Common::getFormatTimeYMD($work['pricetime'])?></span>
                <?php }else{?>
                <span></span>
                <?php }?>
            </div>
            <div class="info">
                <span class="username short">成本:</span>
                <span><?=$work['cost']?></span>
            </div>
            <div class="info">
                <span class="username short">税款:</span>
                <span><?=$work['tax']?></span>
            </div>
            <div class="info">
                <span class="username short">提成:</span>
                <span><?=$work['pay']?></span>
            </div>
            <div class="info">
                <span class="title">客户返款:</span>
                <span><?=$work['ret']?></span>
            </div>
            <div class="info">
                <span class="username short">利润:</span>
                <span><?=$work['profit']?></span>
            </div>
            <?php }?>
            <div class="errmsg" id="errmsg"></div>
            <div class="info operate">
            	<input  class="btn btn_input return" type="button" onclick="window.location.href='<?=$ref?>'" value="返 回">
            	<?php if(Model_Work::ifAuthModify($work)){?>
                <input class="btn btn_input modify" type="button" onclick="window.location.href='http://<?=HOST?>/work/modify/workid/<?=$work['workid']?>'" value="编辑工作">
            	<?php } ?>
            </div>
        </div>
    </div>
</div>